import { Navigate } from 'react-router-dom'

import AddGoods from '../compontents/AddGoods'
import GoodsList from '../compontents/GoodsList'
import CarList from '../compontents/CarList'

const routes = [
  {
    path: '/addgoods',
    element: <AddGoods />,
  },
  {
    path: '/goodslist',
    element: <GoodsList />,
  },
  {
    path: '/carlist',
    element: <CarList />,
  },
  {
    path: '*',
    element: <Navigate to="/addgoods" />,
  },
]

export default routes
